#include<stdio.h>
bool leapcheck(int a);
int main()
{
	int sum=0;
	for(int i=2000;i<3001;i++)
		if(leapcheck(i))
			sum++;
	printf("There are %d leap years between 2000 and 3000.\n",sum);
	return 0;
}
bool leapcheck(int a)
{
	if(a%4==0&&a%100!=0)
		return 1;
	else if(a%400==0)
		return 1;
	else
		return 0;
}
